IRCBot::Plugin.define "faidwiki" do
	help_string "Searches the FaiDwiki."
	depends %w[wikilib]
	def command(user,target,message,usermask)
		Thread.new do
			output = IRCBot::Plugin.registered_plugins['wikilib'].search_wiki(target,message,"faidwiki.niexs.net")
			for item in output
				privmsg(target,item,2)
			end
		end		
	end
end
